package com.huzz.util.desin.bridge;


import com.huzz.util.desin.bridge.drawapi.ColorFill;
import com.huzz.util.desin.bridge.drawapi.DrawAPI;
import com.huzz.util.desin.bridge.drawapi.LineDraw;
import com.huzz.util.desin.bridge.shape.Circle;
import com.huzz.util.desin.bridge.shape.Rectangle;
import com.huzz.util.desin.bridge.shape.Shape;

public class Application {
    public static void main(String[] args) {
        DrawAPI colorFill = new ColorFill();
        DrawAPI lineDraw = new LineDraw();

        Shape redCircle = new Circle(100, 100, 50, colorFill);
        Shape greenRectangle = new Rectangle(200, 200, 100, 50, lineDraw);

        redCircle.draw();
        greenRectangle.draw();
    }
}
